package com.rock.code.common.spring;

public class SpringContext extends SpringServiceLocator {
    public static Object getBean(String beanName) throws Exception {
        Object object = null;
        if (beanFactory == null) {
            throw new Exception("没有初始化BeanFactory！");
        } else {
            object = beanFactory.getBean(beanName);
        }
        return object;
    }

}
